package com.fudan.cfg.trans;

import java.util.List;
import java.util.Map;

import com.fudan.cfg.base.TransDef;
import com.fudan.run.ctx.annotation.TransAdapter;

@TransAdapter("format_field")
public class FormatFieldTransDef extends TransDef{

	private List<Map<String,Object>> mapping;
	
	public FormatFieldTransDef(String name, String type, String target) {
		super(name, type, target);
	}

	@Override
	public TransDef build(Map<String, Object> configuration) {
		this.mapping = (List<Map<String, Object>>) configuration.get("format_mapping");
		return this;
	}

	public List<Map<String,Object>> getMapping() {
		return mapping;
	}

	public void setMapping(List<Map<String,Object>> mapping) {
		this.mapping = mapping;
	}

}
